/**

This file is part of MaCI/GIMnet.

MaCI/GIMnet is free software: you can redistribute it and/or modify it 
under the terms of the GNU Lesser General Public License as published 
by the Free Software Foundation, either version 3 of the License, or 
(at your option) any later version.

MaCI/GIMnet is distributed in the hope that it will be useful, but WITHOUT 
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public 
License for more details.

You should have received a copy of the GNU Lesser General Public 
License along with GIMnet. (See COPYING.LESSER) If not, see 
<http://www.gnu.org/licenses/>.

**/
/**
 * \file
 * \brief Database object handler class header.
 * \author Antti Maula <antti.maula@tkk.fi>
 */
#ifndef _MACI_INTERFACES_OBJECTDB_DBOBJECT_HPP_
#define _MACI_INTERFACES_OBJECTDB_DBOBJECT_HPP_
#include <vector>
#include <inttypes.h>

namespace MaCI {
  namespace ObjectDB {

    
    /** Object identification handle.
     *
     * Single integer used as database key for identifying single
     * object entry. The key applies to both; virtual and real objects
     * but is not distinguishable by value (User needs to know on
     * which type of object the variable is referring to)
     */
    typedef uint32_t TDBObjectHandle;
    
    
    /** Type for identifying Object and associated data.
     *
     */
    class CDBObject {
    public:
      CDBObject(void);
      ~CDBObject(void);
      
    private:
      TDBObjectHandle iDBObjectHandle;
      
    };


    /** Array of objects.
     */
    typedef std::vector<CDBObject> TDBObjectArray;

  }
}
#endif // _MACI_INTERFACES_OBJECTDB_DBOBJECT_HPP_
